#!/bin/bash

# 执行数据库迁移

cd "$(dirname "$0")/.." || exit

echo "🚀 执行数据库迁移..."

# 升级到最新版本
alembic upgrade head

if [ $? -eq 0 ]; then
    echo "✅ 数据库迁移成功"
else
    echo "❌ 数据库迁移失败"
    exit 1
fi

